<template>
<div>
<h4>{{news.title}}</h4>
{{news.content}}
</div>
</template>

<script>
import mui from '../mui.min.js'  
export default{
	name:'xinwenxiangqing',
	data(){
	return({
	news:[]
	})
	},
	created(){
	this.$http.get("http://127.0.0.1:5000/news").then(response =>this.news = response.data[this.$route.params.id-1]).catch(this.news = [0,1]);
	}
}
</script>